//
//  HeaderTitleCollectionViewCell.m
//  DiTripe
//
//  Created by spuer w on 15/12/14.
//  Copyright © 2015年 spuer w. All rights reserved.
//

#import "HeaderTitleCollectionViewCell.h"

@implementation HeaderTitleCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatLabel];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    self.titleLabel.frame = CGRectMake(0, 0, self.width, self.height);
}

- (void)creatLabel {
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectZero];
    
    _titleLabel.font = [UIFont boldSystemFontOfSize:16];
    [self addSubview:self.titleLabel];
}



@end
